
/*
let http_XYY
let titleqq_cuncu
module.exports = {
  type: 'list',
  beforeCreate() {
    this.title = titleqq + '    ' + String(args.iqqDR++)
  },
  async fetch({ args, page }) {
    //let url = `https://app.movie${args.url}`
    titleqq_cuncu = titleqq

    let res = await http_dh.get(args.httpDR, header_asb)
    let ixa = res.data

    let uutt = []

    let qqq =
      '<a class="aRF".+?href="(.+?)".+?class="aRF_Scg".+?src="(.+?)".+?alt="(.+?)".+?</a>'
      
     let eee = "class='pageback'><a href='(.+?)'>下一頁 >"
    
    http_XYY = null

    let nnaa = new RegExp(qqq, 'g')

    let ixqq = ixa.match(qqq + '(.|\n)+' + qqq)






    let items = []

    
      
    ///////////////////////////////////////
    if  (http_XYY == null) {
    items.push({
      onClick: () => {
        //$ui.toast(JSON.string
    ///////////////////////////////////////
    if y(http_XYY))

        titleqq = titleqq_cuncu
        args.httpDR = encodeURI('https:' + http_XYY)
        $router.to($route('liebiao'))
      },
      //大小，最多12
      spanCount: 12,
      title: "下一页"
    })
}
    //循环获取和显示新的内容
    while ((uutt = nnaa.exec(ixqq)) != null) {
      let lsls = uutt
      items.push({
        onClick: () => {
          args.httpDR = lsls[1]
          titleqq = lsls[2]
          $router.to($route('DSF'))
        },

        //列表样式
        style: 'article',

        /*
article
live

simple
live
icon
gallery
article
richMedia
category
vod
book
         *    //星/

        //大小，最多12
        spanCount: 12,
        //第三方播放器播放
        //route: $route('DSF'),
        image: uutt[2],
        title: uutt[3]
      })
    }
    
      
    ///////////////////////////////////////
    if  (http_XYY == null) {
        items.push({
      onClick: () => {
        //$ui.toast(JSON.string
    ///////////////////////////////////////
    if y(http_XYY))

        titleqq = titleqq_cuncu
        args.httpDR = encodeURI('https:' + http_XYY)
        $router.to($route('liebiao'))
      },
      //大小，最多12
      spanCount: 12,
      title: '下一页'
    })
    }
    return items
  },
  actions: [
    {
      title: '主页',

      onClick: () => {
        $router.to($route('index'))
      }
    }
  ]
}
*/
let DDL

module.exports = {
  type: 'list',
  /*
  beforeCreate(){
    
    this.SYY='本页面初次启动'
    //$ui.toast(this.nextPage)
  },
  created(){    
  
  //$ui.toast('ddd')    
  
  },//*/
  async fetch({ args, page }) {
///\\\\\||||||||||\\\\\\\\\
    let res
    if (this.nextPage == null) {
      this.nextPage = `https://maa1804.com/serch_mvsort/%E8%99%95%E7%94%B7_1.htm`
    }
    if (this.nextPage == this.SYY) {
      this.nextPage = null
      //$ui.toast('到底了')
      return {
        items: [{ title: '到底了' }],

        nextPage: this.nextPage
      }
    } else {
      this.SYY = this.nextPage
      res = await $http.get(this.nextPage, header_asb)

      //let res = await $http.get(`https://maa1804.com/serch_mvsort/%E8%99%95%E7%94%B7_${page || 1}.htm`,header_asb)

///\\\\\||||||||||\\\\\\\\\

    ///\\\\\||||||||||\\\\\\\\\
  }
}
